package cn.edu.neu.service.impl;

import cn.edu.neu.dao.TravelNotesDao;
import cn.edu.neu.model.TravelNotes;
import cn.edu.neu.service.TravelNotesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TravelNotesServiceImpl implements TravelNotesService {
    @Autowired
    private TravelNotesDao travelNotesDao;

    @Override
    public List<TravelNotes> getTravelNotesList() {
        return travelNotesDao.getTravelNotesList();
    }

    @Override
    public int insertTravelNotes(TravelNotes travelNotes) {
        return travelNotesDao.insert(travelNotes);
    }

    @Override
    public TravelNotes getTravelNotesById(Integer id) {
        return travelNotesDao.selectByPrimaryKey(id);
    }
}
